package com.ruoyi.yyq.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yyq.mapper.CarShopServiceTypeMapper;
import com.ruoyi.yyq.domain.CarShopServiceType;
import com.ruoyi.yyq.service.ICarShopServiceTypeService;

/**
 * 商家服务类别关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-12
 */
@Service
public class CarShopServiceTypeServiceImpl implements ICarShopServiceTypeService 
{
    @Autowired
    private CarShopServiceTypeMapper carShopServiceTypeMapper;

    /**
     * 查询商家服务类别关联
     * 
     * @param id 商家服务类别关联主键
     * @return 商家服务类别关联
     */
    @Override
    public CarShopServiceType selectCarShopServiceTypeById(Long id)
    {
        return carShopServiceTypeMapper.selectCarShopServiceTypeById(id);
    }

    /**
     * 查询商家服务类别关联列表
     * 
     * @param carShopServiceType 商家服务类别关联
     * @return 商家服务类别关联
     */
    @Override
    public List<CarShopServiceType> selectCarShopServiceTypeList(CarShopServiceType carShopServiceType)
    {
        return carShopServiceTypeMapper.selectCarShopServiceTypeList(carShopServiceType);
    }

    /**
     * 新增商家服务类别关联
     * 
     * @param carShopServiceType 商家服务类别关联
     * @return 结果
     */
    @Override
    public int insertCarShopServiceType(CarShopServiceType carShopServiceType)
    {
        return carShopServiceTypeMapper.insertCarShopServiceType(carShopServiceType);
    }

    /**
     * 修改商家服务类别关联
     * 
     * @param carShopServiceType 商家服务类别关联
     * @return 结果
     */
    @Override
    public int updateCarShopServiceType(CarShopServiceType carShopServiceType)
    {
        return carShopServiceTypeMapper.updateCarShopServiceType(carShopServiceType);
    }

    /**
     * 批量删除商家服务类别关联
     * 
     * @param ids 需要删除的商家服务类别关联主键
     * @return 结果
     */
    @Override
    public int deleteCarShopServiceTypeByIds(Long[] ids)
    {
        return carShopServiceTypeMapper.deleteCarShopServiceTypeByIds(ids);
    }

    /**
     * 删除商家服务类别关联信息
     * 
     * @param id 商家服务类别关联主键
     * @return 结果
     */
    @Override
    public int deleteCarShopServiceTypeById(Long id)
    {
        return carShopServiceTypeMapper.deleteCarShopServiceTypeById(id);
    }
}
